//
//  ADCommonMethods.h
//  ADYiZhiYu
//
//  Created by 晓 on 2017/11/15.
//  Copyright © 2017年 com.idolmedia. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ADCommonMethods : NSObject

+ (ADCommonMethods *)sharedCommonMethods;

///控制输入有限制长度
+ (BOOL)validateString:(NSString*)number range:(NSRange)range limitLength:(NSInteger)limitLength;

/// 控制输入电话号码
+ (BOOL)validatePhoneNumber:(NSString*)number range:(NSRange)range;

//判断字符串是否为空
+ (BOOL)isBlankString:(NSString *)string;

//邮箱验证
+ (BOOL)validateEmail:(NSString *)email;

//判断是否只含纯数字
+ (BOOL)judgeTheillegalNumber:(NSString *)content;

//获取当前时间
+ (NSString *)getNowdataStr;
//获取当天时间
+ (NSString *)getCurrentDayStr;

//计算时间差（转换成秒）倒计时15分钟
+ (NSInteger)calculateTimeChaWithOrderCreatTime:(NSString *)creatTimeStr withFailureTimeStr:(NSString *)failureTimeStr withCurrentTimeStr:(NSString *)currentTimeStr;

@end
